package cn.dkk.create_design.singleton.JavaSingleton;

import java.io.IOException;
import java.io.InputStream;

public class RuntimeTest {
    public static void main(String[] args) throws IOException {
        Runtime runtime = Runtime.getRuntime();
        Process process = runtime.exec("ipconfig");
        InputStream inputStream = process.getInputStream();
        byte[] bytes = new byte[100 * 1024 * 1024];
        int len = inputStream.read(bytes);
        String ipconfig = new String(bytes, 0, len, "GBK");
        System.out.println(ipconfig);
    }
}
